package com.tiankun.eurekasellgoods.service;

import com.tiankun.eurekasellgoods.pojo.Goods;
import com.tiankun.eurekasellgoods.pojo.Spike;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA
 * User: shenhui
 * Date: 2020/11/11
 * Description
 * Version: V1.0
 */
@Service("goodsService")
public interface GoodsService {
    public List<Map<String, Object>> getList(Integer shopId);

    public List<Map<String, Object>> goodsNameList(Integer shopId, String godName);

    public List<Map<String, Object>> goodsStateList(Integer shopId, Integer godState);

    public List<Map<String, Object>> goodsTypeList(Integer shopId, Integer godType);

    public Integer delete(Integer godId);

    public Integer updateGoodsState(Integer godId, Integer godState);

    public Integer updateGoodsNumber(Integer godId, Integer godNumber);

    public List<Map<String, Object>> goodsDetails(Integer godId);

    public Integer add(Goods goods);

    public List<Map<String, Object>> goodsHot();

    public List<Map<String, Object>> goodsSpike(Integer shopId);

    public Integer updateGoods(Goods goods);

    public List<Map<String, Object>> goodsSpikeDetails(Integer spkId);

    public Integer updateSpike(Spike spike);

    public List<Map<String, Object>> nameSpike(Integer shopId, String godName);

    public List<Map<String, Object>> typeSpike(Integer shopId, Integer godType);

    public List<Map<String, Object>> stateSpike(Integer shopId);

    public Integer insertSpike(Spike spike);

    public List<Map<String, Object>> moveGoodsDetails(Integer godId);

    public List<Map<String, Object>> moveAscSpike();

    public List<Map<String, Object>> timeSpike(String startDate, String endDate);

    public Map<String, Object> getId();

    public Integer addGoodsImages(Integer godId, String giUrl);

    public List<Map<String, Object>> typeAll();

    public Integer deleteSpike(Integer spikeId);

    public Integer GoodsCount(Integer godId);

    public Map<String, Object> getSpikeId();
    public Map<String,Object>getSpikeRedis(Integer spikeId);
}
